<?php
include_once('general_include.php');

	$lesson_id=$_REQUEST['lesson_id'];
	
	$SelectUserDeatailsSql="SELECT * FROM ".TABLEPREFIX."_lesson WHERE lesson_id=".$lesson_id;
	$SelectUserDeatails=$UserManagerObjAjax->GetRecords("Row",$SelectUserDeatailsSql);
	
	$lesson_title=$SelectUserDeatails['lesson_title'];
	$lesson_price=$SelectUserDeatails['lesson_price'];
	
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body onload="setTimeout('document.frm.submit()',1000);">
<img src="loading-1.gif" width="120" align="absmiddle" /> Processing payment....
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" name="frm"> 
 
 <input type="hidden" name="business" value="prosen_1313826693_biz@gmail.com"> 
 <input type="hidden" name="cmd" value="_xclick"> 
 
 <input type="hidden" name="item_name" value="<?php echo $lesson_title; ?>"> 
 <input type="hidden" name="amount" value="<?php echo $lesson_price; ?>">  
 <input type="hidden" name="currency_code" value="USD"> 
 <input type="hidden" name="quantity" value="1" />
 <input type="hidden" name="custom" value="<?php echo $lesson_id; ?>" />
 <input type="hidden" name="notify_url" value="http://10.10.0.100/team2/noobskool/paypal_notify.php" />
 <input type="hidden" name="return" value="http://10.10.0.100/team2/noobskool/payment_success.php?custom=<?php echo $lesson_id; ?>" />
 <input type="hidden" name="cancel_return" value="http://10.10.0.100/team2/noobskool/payment_cancel.php" />
</form>
</body>
</html>